import { formatDate } from '@/utils/date'
import type { IVariableList } from './types'
import { getAssetsFile } from '@/utils'

export const CertVariable: IVariableList[] = [
  {
    label: '发证机构中文名称',
    value: `\${agencyNameCN}`,
    preview: '测试职业技术学院'
  },
  {
    label: '发证机构英文名称',
    value: `\${agencyNameEN}`,
    preview: 'TEST POLYTECHNIC COLLEGE'
  },
  {
    label: '评价机构',
    value: `\${agencyEvaluateName}`,
    preview: '测试职业技术学院鉴定中心'
  },
  {
    label: '姓名',
    value: `\${name}`,
    preview: '张三'
  },
  {
    label: '证件类型',
    value: `\${idCardType}`,
    preview: '居民身份证'
  },
  {
    label: '证件号码',
    value: `\${idCard}`,
    preview: '440991101542546328'
  },
  {
    label: '职业名称',
    value: `\${professionName}`,
    preview: '互联网营销员'
  },
  {
    label: '工种/职业方向',
    value: `\${professionDirection}`,
    preview: '直播销售员'
  },
  {
    label: '职业技能等级',
    value: `\${level}`,
    preview: '四级/中级工'
  },
  {
    label: '证书编号',
    value: `\${certificateNumber}`,
    preview: 'Y00004401567243000030'
  },
  {
    label: '证书序号',
    value: `\${no}`,
    preview: 'No'
  },
  {
    label: '发证日期',
    value: `\${certificateTime}`,
    preview: formatDate(new Date(), 'YYYY年MM月DD日')
  },
  {
    label: '证件照',
    value: `\${pic}`,
    preview: getAssetsFile('diy/idPhoto.png')
  }
]
